package com.my.study.utils;

import java.util.concurrent.TimeUnit;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/4/26 22:26
 **/
public class ThreadUtil {


    public static void sleep(int sleep) {
        try {
            TimeUnit.SECONDS.sleep(sleep);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static String currentThreadName() {
        return Thread.currentThread().getName();
    }
}
